package com.foxmail.aroundme.boring.module.splash.presenter;

import com.foxmail.aroundme.boring.base.present.BasePreImpl;
import com.foxmail.aroundme.boring.module.splash.module.SplashInterImpl;
import com.foxmail.aroundme.boring.module.splash.view.ISplashView;

/**
 * Created by gzl on 1/15/17.
 */

public class SplashPreImpl extends BasePreImpl<ISplashView, Object> implements ISplashPre{

    private SplashInterImpl iSplashInter;

    public SplashPreImpl(ISplashView view) {
        super(view);
        iSplashInter = new SplashInterImpl(this);
    }

    @Override
    public void initSplash() {
        if (iSplashInter != null) {
            mSubscription = iSplashInter.initSplash();
        }
    }

    @Override
    public void jumpSplash() {
        if (mView != null) {
            mView.jumpSplash();
        }
    }
}
